export interface CustomFormProps {
    title?: string,
    formList: CustomFormItem[],
}

export interface CustomFormState{
    [key: string] : any
}

export interface CustomFormItem {
    label?: string,
    key: string,
    value?: any,
    children?: any[],
    subItemType?: 'input' | 'range' | 'distanceRule' | 'weightRules' | 'timePeriodRules' | 'weightLabel' | 'discountCouponRules',
    type: 'input' | 'date' | 'select' | 'checkbox' | 'checkGroup' | 'radio' | 'textarea' | 'upload' | 'submit' | 'free' | 'cascader' | 'drawSome' | 'number' | 'discount',
    options?: any[],
    placeholder?: string,
    disabled?: boolean,
    required?: boolean,
    rules?: any[],
    help?: string,
    width?: string | number,
    max?: number,
    min?: number,
    maxLength?: number,
    minLength?: number,
    show?: boolean,
    showLabel?: boolean,
    showTip?: boolean,
    tip?: string,
    tipType?: 'warning' | 'error' | 'success' |'info',
    showTipIcon?: boolean,
    tipIcon?: string,
    showTipClose?: boolean,
    tipCloseIcon?: string,
    showTipCloseIcon?: boolean,
}